﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PHMEE.Migrations
{
    /// <inheritdoc />
    public partial class RenameOvdPortsTable : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_EeOVDPorts",
                table: "EeOVDPorts");

            migrationBuilder.RenameTable(
                name: "EeOVDPorts",
                newName: "EeOvdPorts");

            migrationBuilder.RenameIndex(
                name: "IX_EeOVDPorts_Identifier",
                table: "EeOvdPorts",
                newName: "IX_EeOvdPorts_Identifier");

            migrationBuilder.AddPrimaryKey(
                name: "PK_EeOvdPorts",
                table: "EeOvdPorts",
                column: "Id");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_EeOvdPorts",
                table: "EeOvdPorts");

            migrationBuilder.RenameTable(
                name: "EeOvdPorts",
                newName: "EeOVDPorts");

            migrationBuilder.RenameIndex(
                name: "IX_EeOvdPorts_Identifier",
                table: "EeOVDPorts",
                newName: "IX_EeOVDPorts_Identifier");

            migrationBuilder.AddPrimaryKey(
                name: "PK_EeOVDPorts",
                table: "EeOVDPorts",
                column: "Id");
        }
    }
}
